﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestStarter.Model
{
    public class ExcelTestScript
    {
        public int ID { get; set; }
        public string Run { get; set; }
        public string Group { get; set; }
        public string ObjectDetails { get; set; }
        public string Keyword { get; set; }
        public string Action { get; set; }
        public string Comments { get; set; }
        public bool IsChange { get; set; }

        public bool IsRun
        {
            get
            {
                if (this.Run.Equals("r"))
                {
                    return true;
                }

                return false;
            }
            set
            {
                if (value)
                    this.Run = "r";
                else this.Run = "";
            }
        }
    }
}
